{include file='header'/}
<style>
    #ueditorCheckBox .layui-form-checkbox {
        margin-bottom: 10px;
    }
    .layui-input-block{margin-left: 0 !important;}

</style>
<body class="pear-admin">
<form class="layui-form" action="{:url('config/save')}" method="post">
    <div class="mainBox">
        <div class="main-container">
            <div class="layui-card">
                <div class="layui-card-body">
                    <blockquote class="layui-elem-quote">
                        取值方式： get_config(); 例如，取站点名称：get_config('site_name')
                    </blockquote>

                    <div class="layui-tabs layui-hide-v" lay-options="{trigger: 'mousedown'}">
                        <ul class="layui-tabs-header layui-bg-tint">
                            {foreach name='group' id='vo'}
                            <li
                            <?php if($vo['group_en'] == 'base') echo "class='layui-this'"; ?> >
                            {$vo.group_name}
                            </li>
                            {/foreach}
                        </ul>
                        <div class="layui-tabs-body">
                            {include file='config/field'/}
                        </div>
                    </div>

                </div>

            </div>


        </div>
    </div>
    <div class="bottom">
        <div class="button-container">
            <input type="hidden" name="__token__" value="{:token()}" />
            <button type="submit" class="pear-btn pear-btn-primary pear-btn-sm button-load" lay-submit=""
                    lay-filter="admin-save">
                <i class="layui-icon layui-icon-ok"></i>
                提交
            </button>
            <button type="reset" class="pear-btn pear-btn-sm">
                <i class="layui-icon layui-icon-refresh"></i>
                重置
            </button>
        </div>
    </div>
</form>
{include file='footer'/}
<script>
  layui.use(['form', 'element', 'slider', 'jquery'], function () {
    var $ = layui.jquery
      , slider = layui.slider
      , form = layui.form
      , element = layui.element;
    slider.render({
      elem: '#slideWater'
      , value: "<?php echo get_config('watermark_touming') ?>"
      , theme: '#FF5722' //主题色
      , input: true //输入框
    });
    form.on('radio(captcha_mode)', function (data) {
      $('.captcha_mode').hide();
      $('.captcha_' + data.value).show();
    });

  });
</script>
